[CSS] Margin display disparity between IE7 and FF3

Posted by Ricky on Stack Overflow See other posts from Stack Overflow or by Ricky
Published on 2010-04-09T08:08:03Z Indexed on 2010/04/09 8:13 UTC
Read the original article Hit count: 289

Filed under:
|

Hi everyone:

Refer to HTML, CSS below.

Why the margin-bottom will not reflect in IE7, but in FF3? Is there any workaround for it?

Notice that I set margin: 50 in CSS.

<body style="background-color:#fff">
<div class="window">
  d-window
</div>

CSS:

body{margin:10px;padding:0;background-color:#1e1e1e;color:#ddd; border: 1px solid #000000}
.window { width:280px; clear:both; margin: 50px; border: 1px solid #000000}

Thanks

© Stack Overflow or respective owner

Related posts about css

Related posts about html